<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://localhost:8080/Website/" />
<title>MakeReservationSC2TC5</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">MakeReservationSC2TC5</td></tr>
</thead><tbody>
<!--Created by Steven Chow-->
<!--Scenario 2: UnSuccessful Reservation-->
<!--Test Case 5: User Reserved the same seat as another User-->
<!---->
<!--Go to website-->
<tr>
	<td>open</td>
	<td>http://localhost:8080/Website/</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=div.tile.bg-color-red &gt; div.tile-content.icon</td>
	<td></td>
</tr>
<!--Login like your momma tells ya-->
<tr>
	<td>type</td>
	<td>name=username</td>
	<td>User2</td>
</tr>
<tr>
	<td>type</td>
	<td>name=password</td>
	<td>pass2</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<!--CUSTOMER PORTAL! R U THERE???? REALLY!?? R U THERE!!!-->
<tr>
	<td>assertTitle</td>
	<td>Customer Portal</td>
	<td></td>
</tr>
<!--Search the Flight, you must!!  listen to Master Yoda!!-->
<tr>
	<td>clickAndWait</td>
	<td>css=div.tile-content.icon</td>
	<td></td>
</tr>
<!--No Filters r needed here.  -->
<tr>
	<td>clickAndWait</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>name=r1</td>
	<td></td>
</tr>
<!--Reserve this baby!!!-->
<tr>
	<td>clickAndWait</td>
	<td>css=div &gt; input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>name=firstName</td>
	<td>Bug</td>
</tr>
<tr>
	<td>type</td>
	<td>name=lastName</td>
	<td>Bug</td>
</tr>
<!--HAHA LET'S HIJACK A SEAT THAT IS TAKEN!!!  -->
<tr>
	<td>type</td>
	<td>name=seatID</td>
	<td>F19A</td>
</tr>
<tr>
	<td>click</td>
	<td>css=label.radio &gt; span</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>name=mealOption</td>
	<td></td>
</tr>
<!--Let's SEE WHAT HAPPENS!! I HOPE NOT AN HTTP ERROR!!!!!-->
<!--OR A BLANK PAGE!!!!!!  -->
<tr>
	<td>clickAndWait</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>This seat is taken by another customer</td>
	<td></td>
</tr>
</tbody></table>
</body>
</html>
